package com.qfedu.pojo;

import java.math.BigDecimal;

public class CreditCard {
    private String idcode;
    private String name;
    private String cardnumber;
    private String phone;
    private BigDecimal balance;
    private double maxOverdraft;

    public CreditCard() {
    }

    public CreditCard(String idcode, String name, String cardnumber, String phone, BigDecimal balance, double maxOverdraft) {
        this.idcode = idcode;
        this.name = name;
        this.cardnumber = cardnumber;
        this.phone = phone;
        this.balance = balance;
        this.maxOverdraft = maxOverdraft;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCardnumber() {
        return cardnumber;
    }

    public void setCardnumber(String cardnumber) {
        this.cardnumber = cardnumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public double getMaxOverdraft() {
        return maxOverdraft;
    }

    public void setMaxOverdraft(double maxOverdraft) {
        this.maxOverdraft = maxOverdraft;
    }

    @Override
    public String toString() {
        return "CreditCard{" +
                "idcode='" + idcode + '\'' +
                ", name='" + name + '\'' +
                ", cardnumber='" + cardnumber + '\'' +
                ", phone='" + phone + '\'' +
                ", balance=" + balance +
                ", maxOverdraft=" + maxOverdraft +
                '}';
    }
}
